//清除对象中值为空的属性
//filterParams({a:"",b:null,c:"010",d:123})
//Object {c: "010", d: 123}
function filterParams(obj) {
	let _newPar = {};
	for (let key in obj) {
		if ((obj[key] === 0 || obj[key] === false || obj[key]) && obj[key].toString().replace(/(^\s*)|(\s*$)/g, '') !== '') {
			_newPar[key] = obj[key];
		}
	}
	return _newPar;
}